package com.ck.master.sysconfig;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @Author yd
 * @Date 2018/12/12 17:48
 */
//@Configuration
public class CommonsMultipartConfig {

    //@Bean(name = "multipartResolver")
    public CommonsMultipartResolver getCommonsMultipartResolver() {
        CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
        multipartResolver.setMaxUploadSize(20971520);
        multipartResolver.setMaxInMemorySize(1048576);
        return multipartResolver;
    }
}
